<?php 
// +----------------------------------------------------------------------
// | CRMUU-企微SCRM是专业的企业微信第三方源码系统.
// +----------------------------------------------------------------------
// | [CRMUU] Copyright (c) 2022 http://crmuu.com All rights reserved.
// +----------------------------------------------------------------------

namespace app\wework\controller\job;

use app\BaseController;
use think\facade\Db;
use app\wework\model\BaseModel;
use app\wework\model\QyWechatApi;
use think\facade\Log;
use think\queue\Job;


/**
	* 个人Sop类
*/
class CustomerSopJob extends BaseControll1er{
	public function index(){
		echo 1;die;
		$config_list = Db::table('kt_wework_config')->where(["customer_status"=>1])->column("wid");
		if(!$config_list) return success("操作失败");
		foreach ($config_list as $user) {
		   $this->sop($user);
		}
        return success("操作成功");
 	}

 	public function sop($wid){
 		$list = Db::table("kt_wework_customer_sop")->where(["wid"=>$wid,"status"=>1,"scene_type"=>1])->select()->toArray();
 		var_dump($list);die;
 		foreach ($list as $value){

 		}
 	}
}